Forum Moderators: phranque
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^([^/]+)/([^/]+)/property-details/([^/]+)/$ property-details.php?uniqueID=$1&retpg=$2
http://website.com/106320257/carousel/property-details/seo-friendly-text/
# Add a / before the target of the rewrite
RewriteRule ^([^/]+)/([^/]+)/property-details/([^/]+)/$ /property-details.php?uniqueID=$1&retpg=$2
# Add a / before the target of the rewrite, remove last capture group, add L flag
RewriteRule ^([^/]+)/([^/]+)/property-details/[^/]+/$ /property-details.php?uniqueID=$1&retpg=$2 [L]
http://website.com/property-details.php?uniqueID=106320257&retpg=carousel
<VirtualHost [ipaddress]:80>
DocumentRoot /var/www/html/website
ServerName website.com.au
ServerAlias website.com.au website
ServerAdmin root@website.com.au
DirectoryIndex index.php index.html index.htm index.shtml
<Directory "/var/www/html/website">
Options -Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_rewrite.c>
RewriteLog "/var/www/html/website/rewrite.log"
RewriteLogLevel 10
</IfModule>
HostNameLookups on
</VirtualHost> AllowOverride cannot be none