Page 1 of 1

SEO Google

Posted: Mon 15. Dec 2008, 21:29
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

Re: SEO Google

Posted: Mon 15. Dec 2008, 21:35
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:

Re: SEO Google

Posted: Mon 15. Dec 2008, 21:39
by xinoy
I didn't mean it for only the news i ment it for all the pages that you generate with phpwcms.

Re: SEO Google

Posted: Mon 15. Dec 2008, 21:52
by juergen
yes ! As it is ! All !

Re: SEO Google

Posted: Mon 15. Dec 2008, 22:09
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

Re: SEO Google

Posted: Mon 15. Dec 2008, 23:19
by Heiko H.

Re: SEO Google

Posted: Tue 6. Jan 2009, 15:27
by Lakseninord
and who said you couldn't find anything in here? :)

Re: SEO Google

Posted: Tue 6. Jan 2009, 22:54
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

Re: SEO Google

Posted: Wed 7. Jan 2009, 00:45
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}]

Re: SEO Google

Posted: Wed 7. Jan 2009, 06:00
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

Re: SEO Google

Posted: Wed 7. Jan 2009, 18:05
by markus s
@jensensen, you are right !
but a clean url is already better... (and its for free hehe)

Re: SEO Google

Posted: Mon 12. Jan 2009, 23:59
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

Re: SEO Google

Posted: Mon 12. Jan 2009, 23:59
by larissa
i solve it
by commenting
# php_flag magic_quotes_gpc Off
# php_flag register_globals Off
is that ok?
larissa

Re: SEO Google

Posted: Tue 13. Jan 2009, 00:16
by flip-flop
Absolutely YES!

Knut