Support Forums

SEO and extra pages

This is a discussion on SEO and extra pages within the Technical Support forums, part of the Technical Support Forums category; Hi, I am using the SEO module and I noticed that extra pages appear in this way: ../page/x.html (x=id) Is ...


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

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-03-2009, 07:40 AM   #1
Member
 
Join Date: Nov 2008
Posts: 82
Rep Power: 11
Isje is on a distinguished road
Default SEO and extra pages

Hi,

I am using the SEO module and I noticed that extra pages appear in this way:
../page/x.html (x=id)

Is there a way to display the page title instead of id number?

Thanks
__________________
Using v4.1.5 Developer
NuStyle Template
Isje is offline  
Old 06-03-2009, 09:11 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,013
Rep Power: 74
seymourjames is a jewel in the rough
Default

You could do mod_rewrites on these urls in your .htaccess . For example,

RewriteRule ^weather-france\.htm$ page/16.html [NC]


Bright sunshine by the way and 32C
__________________
"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  
Old 06-03-2009, 10:49 AM   #3
Member
 
Join Date: Nov 2008
Posts: 82
Rep Power: 11
Isje is on a distinguished road
Default

Hi, I tried this, but it doesn't work. I added the line

RewriteRule ^faq\.htm$ page/7.html [NC] (7 is my faq page)

But nothing changed...

Here good weather as well



Quote:
Originally Posted by seymourjames
You could do mod_rewrites on these urls in your .htaccess . For example,

RewriteRule ^weather-france\.htm$ page/16.html [NC]


Bright sunshine by the way and 32C
__________________
Using v4.1.5 Developer
NuStyle Template
Isje is offline  
Old 06-03-2009, 01:42 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,013
Rep Power: 74
seymourjames is a jewel in the rough
Default

You have got this haven't you before in the htaccess file?

RewriteRule ^page/([0-9]+)\.html$ pages.php?page=$1 [NC]

Then the line I gave you; make it html rather than just htm.

RewriteRule ^weather-france\.htm$ page/16.html [NC]
__________________
"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  
Old 06-04-2009, 04:34 AM   #5
Member
 
Join Date: Nov 2008
Posts: 82
Rep Power: 11
Isje is on a distinguished road
Default

Yes, I have that before in the htaccess file, but it still shows page/7.html
Quote:
Originally Posted by seymourjames
You have got this haven't you before in the htaccess file?

RewriteRule ^page/([0-9]+)\.html$ pages.php?page=$1 [NC]

Then the line I gave you; make it html rather than just htm.

RewriteRule ^weather-france\.htm$ page/16.html [NC]
__________________
Using v4.1.5 Developer
NuStyle Template
Isje is offline  
Old 06-04-2009, 06:24 AM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,013
Rep Power: 74
seymourjames is a jewel in the rough
Default

And how are you getting to this page 7. Through links in your site or are you just trying to type it in the address bar of your browser? If you do the latter it will not change. It is a rewrite not a redirect.

Also (not sure in 4.1x), it was necessary to have this in the config file of the SEO module. I don't use this module in 4.1 so this may or may not be the case.

"'(?<!/)".URL."/pages.php\?page=([a-zA-Z0-9]*)'",
__________________
"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  
Old 06-04-2009, 08:33 AM   #7
Member
 
Join Date: Nov 2008
Posts: 82
Rep Power: 11
Isje is on a distinguished road
Default

I'm getting to this page through other links in my site.

As for the code, do you mean I paste the code below as it is in the config.php file?

Thanks again

"'(?<!/)".URL."/pages.php\?page=([a-zA-Z0-9]*)'",
__________________
Using v4.1.5 Developer
NuStyle Template
Isje is offline  
Old 06-04-2009, 09:22 AM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,013
Rep Power: 74
seymourjames is a jewel in the rough
Default

Yes paste it in if the module still works this way.

But then after visiting your site you might like to try and make the link to your faq page like this

/pages.php?page=7

See if that rewrites.
__________________
"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  
Old 06-04-2009, 11:49 AM   #9
Member
 
Join Date: Nov 2008
Posts: 82
Rep Power: 11
Isje is on a distinguished road
Default

Hi,

I think I know what the problem was: I should have adjusted the links in the pages linking to the extra page to /faq.html instead of leaving it /pages.php?page=7

So it was, as you mentioned, like pasting the URL into the browser That's why it didn't work.

Sorry for this, and thanks for your help

Isje
__________________
Using v4.1.5 Developer
NuStyle Template
Isje is offline  
Old 07-19-2009, 11:44 PM   #10
Member
 
Join Date: Jun 2009
Posts: 62
Rep Power: 8
gadgit7 is on a distinguished road
Default

Hi,

I'm having similar trouble. I have pased that code into the config.php module file but i'm still getting links that just show the page number http://www.sellingbusiness.com.au/pages.php?page=11

Any ideas?

Thanks

Gary
__________________
Fluid-Conifer2
68classifieds version 4.1.6
http://www.sellingbusiness.com.au

Last edited by gadgit7; 07-19-2009 at 11:47 PM.
gadgit7 is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change meta description for extra pages bowers01 Technical Support 6 10-27-2008 05:43 AM
Where are extra pages? crystal Technical Support 8 07-14-2008 07:03 PM


All times are GMT -4. The time now is 10:58 AM.


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