Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> For Hire
Author Message
rovshan
Hangin' Around



Joined: Nov 26, 2005
Posts: 40

PostPosted: Thu Sep 24, 2015 6:46 am Reply with quote

Dear All,

I am trying to create new structure for Shortlinks. There are 2 reasons :
1. Need to create multilingual site : french, english, german, russian, chinees and build links in these languages
2. To improve SEO via new link structure

for example
=> link to index page of module TAGS domain.com/tags/
=> link to tag page domain.com/tags/my-tag-here

The idea to get keywords in links in the same language as the site language: if site lang french - links should be in french (éèçéàù etc letters in link ) / if site lang russian then links in russian (ыеушщфй etc letters in link).

for example for French version
=> link to index page of module TAGS should be domain.com/mot-clés/
=> link to tag page should be domain.com/mot-clés/âùté-été

I try to implement this idea with TAGS module. I use UTF-8 charset by default for site and DB.

1 issue.
I have to delete .html extension for TAGS module. Otherwise I could not achieve to create multilingual links,

get links broken =>/about-sch.htmléma

To pass multilingual character in link I used this function

$tagurl = rawurlencode($tag);
$tagurl = str_replace('%20', '-', $tagurl);

and for DB select function this one :

$tag = str_replace('-', ' ', $tag);

it seems to work. But I'am not sure about security issue !!! any comments appreciated.

2 issue.
Unfortunately could not implement new structure like => domain.com/tags/my-tag-here

Any idea or suggestion ?!

Thanks.
 
View user's profile Send private message
rovshan







PostPosted: Sat Sep 26, 2015 6:19 am Reply with quote

Dear All,

I try to rebuild the links structure via .htaccess file. I would like to get this link structure for News module :

-domain.com/n11/article.html => where 11 - id number instead of -domain.com/article1.html

I did this mod in .htaccess file
RewriteRule ^n([1-9][0-9]*)?/article.html* modules.php?name=News&file=article&sid=$1 [L]

and this mod in GT-News.php :

'n\\1\\article.html',

The problem is when I click on this link on News page => domain.com/n11/article.html I get content from DB correctly but links in html for CSS, JS, images is broken.
for example css should be : -domain.com/themes/ravennuke.css
I get this in output html code : domain.com/n11/themes/ravennuke.css

It seems like the nuke understand this part of url /n11/ like nuke installed in subfolder.

Could you please help me to fix this issue?

Thanks.
 
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Thu Oct 01, 2015 5:21 am Reply with quote

rovshan, montego is most knowledgeable about this, but has been very busy. Perhaps neralex might be able to assist. I'm not sure if the shortlinks requires no subfolders, but it sounds like that might be the case. You might check the documentation for shortlinks to clarify that.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1775

PostPosted: Wed Oct 07, 2015 6:20 am Reply with quote

I will give it a try tonight. Wink

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
neralex







PostPosted: Tue Oct 13, 2015 10:53 am Reply with quote

rovshan, I played with the Shortlinks and I would say what you are trying isn't possible with the Shortlinks mod in RN25x. Sorry!

For me personally is the current using of Shortlinks in RN25x to compliated because with the years you will flood the htaccess file with to much rewrite rules. I like the simple way how it works in wordpress with the permalinks.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> For Hire

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©