It is currently Wed Apr 01, 2015 8:03 am

News News of Apache mod Rewrite

Site map of Apache mod Rewrite » Forum : Apache mod Rewrite

Discussions about Apache mod Rewrite, .htaccess, Use, experiences ... URL Rewriting.

.htaccess Rewrite http to https

I would like to force https with correct Comodo Certificate, in the website form .htaccess (and not only from php).
My webserver suggest to use these row to force HTTPS for an entire site :

Code: Select all
RewriteEngine On
RewriteCond %{ENV:SECURE_REDIRECT} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

I tryed to do it adding these 2 lines in the .htaccess file. But then I receive error.

Using instead this code:
Code: Select all
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:SECURE_REDIRECT} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteRule ^index\.php$ - [L]

Going to the website with chrome, Opera and Firefox ...
Read more : .htaccess Rewrite http to https | Views : 1887 | Replies : 2

Rewrite URL in Joomla Backend

Hi, i am searching for a way to change a URL in Joomla Backend.


It should look like that



should look like that:

could anybody give me a .htaccess example so i can test with?

Best Regards
Read more : Rewrite URL in Joomla Backend | Views : 3563 | Replies : 2

.htacces "more options" not saving

Dear people,

We have succesfully installed phpbb and phpbb seo in the subcategorie domain/forum. Everything is working but the seo rewriting does not work. We have set all options for the phpbb seo and want to set the .htacces file in our subcategory (this because we use wordpress in the root directory and when you combine the .htacces you get a 500 internal error). If I am correct you have to use the more options button at the htacces tab. When we set this one to yes and also set RegEx Left Slash: to yes we can upload the .htacces ...
Read more : .htacces "more options" not saving | Views : 3056 | Replies : 11

Move Forum from sub folder to subdomain

I'm running my forum today at and for specific security, performance and hosting reasons, I looking to move the site to

I understand the SEO impacts this might cause and I'm OK with that at this point....

So with that in mind, any suggestions for what the .htaccess 301 redirects would look like while I make the leap and move the site?


Read more : Move Forum from sub folder to subdomain | Views : 4528 | Replies : 1

Need help to create 301 dynamic redirect urls


I have one question about is it possible to create dynamic 301 redirect urls.

I have a dating site and the url format is like /dating/united_states_singles/. A few months ago, I changed it to /free-dating/united_states/ (added free and removed singles). When I checked on Google webmaster tool, both URLs (old and new) are indexed, which create duplicate title and description tags.

Is it possible to create 301 redirect for all old urls to new urls format?

Thanks very much!
Have a nice day!
Read more : Need help to create 301 dynamic redirect urls | Views : 6999 | Replies : 1


Login  •  Register


Total posts 70899 • Total topics 36119 • Total members 17944