Support Forums

Making custom pages url friendly

This is a discussion on Making custom pages url friendly within the Technical Support forums, part of the Technical Support Forums category; What version of 68 Classifieds are you running? Example: V4.1.6 Designer What template are you using? purple Please describe in ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

Reply
 
Thread Tools Display Modes
Old 02-23-2010, 10:05 PM   #1
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 203
Rep Power: 9
EnergyFreak is on a distinguished road
Default Making custom pages url friendly

What version of 68 Classifieds are you running?
Example: V4.1.6 Designer

What template are you using?

purple
Please describe in detail the issue you are having:

Hi,

I have just created a help page from the page editor, and this is what it gave me as a link:

http://www.yoursite.com/pages.php?page=6

How can I change it to http://www.yoursite.com/help.html for example, is this possible or..?

Thanks.
EnergyFreak is offline   Reply With Quote
Old 02-23-2010, 10:15 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,008
Rep Power: 74
seymourjames is a jewel in the rough
Default

68C sell an SEF module for nicely formatted urls. Its on their site.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds and Version 4 Templates
seymourjames is offline   Reply With Quote
Old 02-23-2010, 10:40 PM   #3
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 203
Rep Power: 9
EnergyFreak is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
68C sell an SEF module for nicely formatted urls. Its on their site.
Ya I have that module and it is activated but still no change.
EnergyFreak is offline   Reply With Quote
Old 02-24-2010, 06:43 AM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,008
Rep Power: 74
seymourjames is a jewel in the rough
Default

Then have you followed the instructions on how to set up the module and your .htaccess file. Post the lines you have affecting pages in both modules here.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds and Version 4 Templates
seymourjames is offline   Reply With Quote
Old 02-24-2010, 09:59 AM   #5
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 203
Rep Power: 9
EnergyFreak is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
Then have you followed the instructions on how to set up the module and your .htaccess file. Post the lines you have affecting pages in both modules here.
Both modules? Yes I have followed the instructions to install the module. I have uploaded the .htaccess and I have added this line over my stylesheet like I was suppose to, <base href="{$smarty.const.URL}/" />

But no change.
EnergyFreak is offline   Reply With Quote
Old 02-24-2010, 03:35 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,008
Rep Power: 74
seymourjames is a jewel in the rough
Default

have you tried rewritebase in yoiur .htaccess

like this

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

.
.
.

#pages
RewriteRule ^page/([0-9]+)\.html$ pages.php?page=$1 [NC,QSA]
RewriteRule ^page/([0-9a-zA-Z_-]+)\.html$ pages.php?pg=$1 [NC,QSA]
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds and Version 4 Templates
seymourjames is offline   Reply With Quote
Old 02-24-2010, 05:40 PM   #7
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 203
Rep Power: 9
EnergyFreak is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
have you tried rewritebase in yoiur .htaccess

like this

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

.
.
.

#pages
RewriteRule ^page/([0-9]+)\.html$ pages.php?page=$1 [NC,QSA]
RewriteRule ^page/([0-9a-zA-Z_-]+)\.html$ pages.php?pg=$1 [NC,QSA]
I just added
PHP Code:
RewriteBase 
to my .htaccess and it did not change anything, but no I did not have it before.
EnergyFreak is offline   Reply With Quote
Old 02-25-2010, 05:35 AM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,008
Rep Power: 74
seymourjames is a jewel in the rough
Default

If you have not modified the code from the advised .htaccess file and SEO module you should arrive wirth urls in the form below without difficultly.

http://www.mysite.com/page/mypage.html

What happens when you copy and paste your "html" link directly into your browser? If it works then you do not have the right link in your template to start with that can be successfully converted. If you have not modified your template links then this should be raised with 68C as a potential bug.

I also presume you have put "help" into the URI field when you defined the page in your admin control panel.

I just tested the module on our demo templates and it works perfectly.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds and Version 4 Templates
seymourjames is offline   Reply With Quote
Old 02-25-2010, 06:31 PM   #9
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 203
Rep Power: 9
EnergyFreak is on a distinguished road
Default

Hi seymour,

Here are screens of the files that I ahve modified, so you can see if I did everything right. My module is also uploaded and activated and the following changes have been applied to the files. Guessing from the first screen my url should be www.yoursite.com/aide.html?

If everything I did is right, then I will report the bug.

Thanks.
Attached Images
File Type: jpg screen1.jpg (43.9 KB, 8 views)
File Type: jpg screen2.jpg (127.4 KB, 8 views)
File Type: jpg screen3.jpg (166.5 KB, 8 views)
EnergyFreak is offline   Reply With Quote
Old 02-25-2010, 09:56 PM   #10
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,008
Rep Power: 74
seymourjames is a jewel in the rough
Default

How is this

www.yoursite.com/aide.html

similar to this

www.mysite.com/page/mypage.html or in your case www.yoursite.com/page/aide.html


Secondly, why are you putting that code into your layout.tpl file? I don't see why it is needed.

Thirdly you may not need the rewrite base in the .htaccess.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds and Version 4 Templates
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a template NigelShaw Templates, HTML, CSS, and Design Help 2 04-22-2009 05:13 PM
Making A Help Section bowers01 Technical Support 0 09-27-2008 04:00 AM
Help with making changes craigdavidfox Technical Support 1 05-14-2008 07:22 AM
making second purchase Unregistered Pre Sales Questions 1 11-10-2007 05:17 PM
Making a new page postmysale Templates, HTML, CSS, and Design Help 0 05-19-2006 09:51 PM


All times are GMT -4. The time now is 04:35 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0