SEO Google

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
xinoy
Posts: 60
Joined: Thu 7. Feb 2008, 21:05

SEO Google

Post by xinoy »

Hello,

is it possible that index.php can be removed from the url.

So that we get this --> f.e. http://www.testpagellala.nl/news instead of f.e. http://www.testpagellala.nl/index.php?news

Thank already for your answer.

Greetz Michael
Last edited by xinoy on Mon 15. Dec 2008, 21:40, edited 1 time in total.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: SEO Google

Post by juergen »

Hi there,
did you have a look at the _htaccess file inclueded ? just rename it to .htaccess , switch it onb in config.inc.php to get it going: news.phtml :wink:
xinoy
Posts: 60
Joined: Thu 7. Feb 2008, 21:05

Re: SEO Google

Post by xinoy »

I didn't mean it for only the news i ment it for all the pages that you generate with phpwcms.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: SEO Google

Post by juergen »

yes ! As it is ! All !
xinoy
Posts: 60
Joined: Thu 7. Feb 2008, 21:05

Re: SEO Google

Post by xinoy »

Where can i find the _htaccess file and what line do i have to change in config.php ?

Can you help me please.. ?

Greetz
User avatar
Heiko H.
Posts: 868
Joined: Thu 27. Oct 2005, 11:41
Location: Dresden
Contact:

Re: SEO Google

Post by Heiko H. »

Not longer here - sorry...

Haubner-IT GbR Dresden
Lakseninord
Posts: 1
Joined: Tue 6. Jan 2009, 15:24

Re: SEO Google

Post by Lakseninord »

and who said you couldn't find anything in here? :)
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

Re: SEO Google

Post by markus s »

in the config.inc.php look for

Code: Select all

$phpwcms["rewrite_url"] = 0;
and switch it to 1

then you have in your root folder a file called "_htaccess" rename it to ".htaccess".

check the content:

Code: Select all

# These settings are recommend
# Maybe you might have problems
# with other scripts that needs
# register_globals ON
php_flag magic_quotes_gpc Off
php_flag register_globals Off


<IfModule mod_rewrite.c>

	# Rewrite functionality for phpwcms
	# optimized by Jan212
	# 18-04-2004
	
	# Check that you have set Options FollowSymLinks
	# and right Allow
	RewriteEngine On
	
	# maybe you need this
	#DirectoryIndex index.html index.php 
	
	
	# Default ReWrite settings for phpwcms
	# ===============================================
	# This will rewrite 0.0.0.0.0.0.phtml => index.php?id=0.0.0.0.0.0
	RewriteBase / 
	RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ index.php?id=$1,$2,$3,$4,$5,$6
	
	# This will rewrite mypage.phtml => index.php?mypage
	RewriteRule ^(.+)\.phtml$ index.php?$1
	
	
	# If phpwcms is installed in a subdirectory,
	# sample: "mysubdir" then use this (remove #)
	# if above lines doesn't work for you
	# ===============================================
	#RewriteBase /mysubdir
	#RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ /mysubdir/index.php?id=$1,$2,$3,$4,$5,$6
	#RewriteRule ^(.+)\.phtml$ /mysubdir/index.php?$1 
	
	
	# If you want to set rewrite logging
	# ===============================================
	#RewriteLog "/absolute/path/to/the/rewrite.log" 
	# 0 = Logging disabled, 9 = highest level of logging, only for debugging 
	#RewriteLogLevel 3
	
</IfModule>

#Sometimes neccessary to add those
#
#AddType application/x-javascript .js
#AddType text/css .css
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: SEO Google

Post by Jensensen »

Sorry, excuse me, but "rewrite" of phpwcms is unsatisfying.

Instead of /index.php?blah
you get just /another-blah{alias}.phtml :?
regardless of which site structure level, whatever. [funny stuff isn't it?]

What fundamentally should be the difference? :lol: :?: :idea:
This way it is irrelevant for Google and friends. [no advantage, but content, structure, css rulez]

This why http://code.google.com/p/phpwcms/issues/detail?id=132 is for [good and we are waiting {like for GURM}]
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: SEO Google

Post by juergen »

Hey, ask these Bot programers Jens ;)

In fact there is a diference ! I can pm you sites where I mirror (gurming) google ! :D
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

Re: SEO Google

Post by markus s »

@jensensen, you are right !
but a clean url is already better... (and its for free hehe)
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
larissa
Posts: 39
Joined: Tue 31. Jul 2007, 23:18
Contact:

Re: SEO Google

Post by larissa »

Hi All
this is my site http://www.myflorenceguide.com/

can you please help me whit this:

if i rename _htaccess to .htaccess and apply to it suggested changes
i get a server error did it happen to you as well ?
Internal Server Error
and moreover what's excatly the right content of .htaccess and do i have to change something also in the category alias to have .phtml ?
in other words teach me step by step
many thanks
larissa
1000 Years to PHPWCMS!
larissa
Posts: 39
Joined: Tue 31. Jul 2007, 23:18
Contact:

Re: SEO Google

Post by larissa »

i solve it
by commenting
# php_flag magic_quotes_gpc Off
# php_flag register_globals Off
is that ok?
larissa
1000 Years to PHPWCMS!
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: SEO Google

Post by flip-flop »

Absolutely YES!

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply