EMAIL support@unlimited-space.com or CALL us on 1300 657 422



Domain Availability Search

URL rewrite

Post your questions about PHP, MySQL, Perl, HTML, JavaScript coding and website design

URL rewrite

Postby match on Thu Apr 30, 2009 12:42 am

Hi

I'm wanting to rewrite the url, using mod rewrite. I'm assuming this is supported.
So instead of the url looking like this "www.site.com.au/index.php/section1"

it will look like this "www.site.com.au/section1"

Much more user friendly to search engines and me.

thanks.
match
 
Posts: 1
Joined: Thu Apr 30, 2009 12:35 am

Re: URL rewrite

Postby Adam S on Thu Apr 30, 2009 8:55 pm

Hi match,

mod_rewrite is supported on our servers, you can redirect pages by using this:

Code: Select all
RewriteEngine On
rewritecond %{http_host} ^yoursite.com
rewriteRule ^(.*) http://www.yoursite.com/$1 [R=301,L]


by inserting this into your .htaccess file, it will solve the problem by redirecting anything linking to yoursite.com to www.yoursite.com, also redirecting the pagerank which you are trying to accomplish via SEO.
Unlimited Space Customer Service | support@unlimited-Space.com
http://www.unlimited-space.com | P: 1300 657 422 | F: 03 9532 1346
Adam S
Site Admin
 
Posts: 156
Joined: Thu Oct 09, 2008 3:05 pm
Location: Melbourne


Return to Designers & Developers Lounge

Who is online

Users browsing this forum: No registered users and 0 guests

cron